package com.hk.commons.entity.product;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * Created by Evan on 2017/7/6.
 * 产品要签的合同中间表
 */
@Entity
@Table(name = "agreement_to_product")
public class AgreementToProduct implements Serializable {


    @Id
    private Long id;

    /**
     * 创建时间
     */
    private Long cts;

    /**
     * 产品ID
     */
    private Long productId;

    /**
     * 合同ID
     */
    private Long agreementId;

    /**
     * 合同标题（非表字段）
     */
    @Transient
    private String agreementTitle;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCts() {
        return cts;
    }

    public void setCts(Long cts) {
        this.cts = cts;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getAgreementId() {
        return agreementId;
    }

    public void setAgreementId(Long agreementId) {
        this.agreementId = agreementId;
    }

    public String getAgreementTitle() {
        return agreementTitle;
    }

    public void setAgreementTitle(String agreementTitle) {
        this.agreementTitle = agreementTitle;
    }
}
